import config from "@/config"
import http from "@/utils/request"

export default {
	list: {
		url: `${config.API_URL}/stock/order/list`,
		get: async function(data,  config={}){
			return await http.get(this.url, data,  config);
		}
	},
	finance: {
		url: `${config.API_URL}/stock/order/finance`,
		post: async function(data) {
			return await http.post(this.url, data);
		}
	},
	scanGoods: {
		url: `${config.API_URL}/stock/scan`,
		get: async function(data,  config={}){
			return await http.get(this.url, data,  config);
		}
	},
	stockAddData: {
		// 出入库接口 
		url: `${config.API_URL}/stock/add/data`,
		post: async function(data) {
			return await http.post(this.url, data);
		}
	},
	stockorderUpdate: {
		// 修改出入库单价格数量 
		url: `${config.API_URL}/stock/order/update`,
		post: async function(data) {
			return await http.post(this.url, data);
		}
	}
}